﻿/*
SINACOR - BMF&Bovespa
Arquivo: IAlocacaoCoberturaTermo.cs
Criado em: 27-nov-2009 11:59:17
Arquiteto Responsável: ramelo.7comm
*/
using System;
using System.ServiceModel;
using System.Collections.Generic;
using Sinacor.Infra.Common.Exceptions;
using Sinacor.Infra.Service.ExceptionHandling;
using Sinacor.Infra.Service.Security.Services;
using Sinacor.Infra.Common;
using Sinacor.Infra.Common.Exceptions.FaultContracts;

namespace Sinacor.Servico.Bovespa.Alocacao.Service.ServiceContract
{

    /// <summary>
    /// Contrato de serviços disponibiliza métodos para atender a cobertura de
    /// operações a Termo com operações à Vista
    /// </summary>
    [ExceptionShielding]
    [ServiceContract(Namespace = "http://www.bovespa.com.br/Sinacor.Servico.Bovespa.Alocacao.Service.ServiceContract", SessionMode = SessionMode.Allowed, Name = "IAlocacaoCoberturaTermo")]
    public interface IAlocacaoCoberturaTermo
    {
        #region Métodos
        /// <summary>
        /// CobrirOperacoesTermo
        /// <b>Transacional:</b> Sim
        /// </summary>
        /// <param name="request"></param>
        [OperationLog]
        [FaultContract(typeof(BusinessFault))]
        [FaultContract(typeof(ValidationFault))]
        [FaultContract(typeof(GeneralFault))]
        [FaultContract(typeof(InvalidSessionFault))]
        [FaultContract(typeof(LicensingFault))]
        [FaultContract(typeof(AccessIsDeniedFault))]
        [TransactionRequired]
        [OperationContract(IsTerminating = false, IsInitiating = true, IsOneWay = false, AsyncPattern = false, Action = "CobrirOperacoesTermo")]
        void CobrirOperacoesTermo(List<DataContract.Request.OperacaoRequest> request);


        /// <summary>
        /// CobrirOperacoesTermo
        /// <b>Transacional:</b> Não
        /// </summary>
        /// <param name="request"></param>
        [OperationLog]
        [FaultContract(typeof(InvalidSessionFault))]
        [FaultContract(typeof(BusinessFault))]
        [FaultContract(typeof(ValidationFault))]
        [FaultContract(typeof(GeneralFault))]
        [FaultContract(typeof(LicensingFault))]
        [FaultContract(typeof(AccessIsDeniedFault))]
        [OperationContract(IsTerminating = false, IsInitiating = true, IsOneWay = false, AsyncPattern = false, Action = "ConsultarOperacoes")]
        List<DataContract.Response.OperacaoResponse> ConsultarOperacoes(DataContract.Request.FiltroCoberturaTermoRequest request);

        #endregion Métodos
    }
}
